/**
 * 路由入口
 */

const router = require('koa-router')();
const view = require('./view');  // 页面
const api = require('./api');  // api

router.use('/', view.routes(), view.allowedMethods());
router.use('/api', api.routes(), api.allowedMethods());

module.exports = router;

